package com.rzl.expense.expense.mapper;

import java.util.List;
import com.rzl.expense.expense.domain.PaymentResourceDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 报账时关联资源Mapper接口
 * 
 * @author expense
 * @date 2024-11-30
 */
public interface PaymentResourceDetailMapper 
{
    /**
     * 查询报账时关联资源
     * 
     * @param id 报账时关联资源主键
     * @return 报账时关联资源
     */
    public PaymentResourceDetail selectPaymentResourceDetailById(Long id);

    /**
     * 查询报账时关联资源列表
     * 
     * @param paymentResourceDetail 报账时关联资源
     * @return 报账时关联资源集合
     */
    public List<PaymentResourceDetail> selectPaymentResourceDetailList(PaymentResourceDetail paymentResourceDetail);

    /**
     * 新增报账时关联资源
     * 
     * @param paymentResourceDetail 报账时关联资源
     * @return 结果
     */
    public int insertPaymentResourceDetail(PaymentResourceDetail paymentResourceDetail);

    /**
     * 修改报账时关联资源
     * 
     * @param paymentResourceDetail 报账时关联资源
     * @return 结果
     */
    public int updatePaymentResourceDetail(PaymentResourceDetail paymentResourceDetail);

    /**
     * 删除报账时关联资源
     * 
     * @param id 报账时关联资源主键
     * @return 结果
     */
    public int deletePaymentResourceDetailByDate(@Param("startDate") String startDate,@Param("endDate") String endDate);

    /**
     * 批量删除报账时关联资源
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePaymentResourceDetailByIds(Long[] ids);

    public void batchPaymentResourceDetail(List<PaymentResourceDetail> list);

}
